<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMallOrderItemTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mall_order_item', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('order_id')->unsigned()->comment('订单id');
            $table->integer('goods_id')->comment('商品id');//
            $table->decimal('price')->comment('价格');//
            $table->decimal('original_price')->comment('参考价');//
            $table->integer('quantity')->comment('数量');//
            $table->integer('xyb')->unsigned()->comment('使用的小妖币');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
